<template>
  <!-- 流程列表-流程定义-->
  <div class="app-container calendar-list-container">
    <basic-container>
      <!-- 通过网关转发-->
      <!-- <iframe class="iframe-flow" id="bdIframe"
    frameborder="no" border="0"
     src="/scabpm/agilebpm-ui/bpm/definition/definitionList.html"></iframe> -->

      <!-- 通过IP调用-->
      <iframe class="iframe-flow" id="bdIframe" frameborder="no" border="0" :src="url"></iframe>
    </basic-container>

  </div>
</template>
<script>
  export default {
    name: 'flow_list_definition',
    data() {
      return {
        // url:'http://sca-bpm:8888/agilebpm-ui/bpm/definition/definitionList.html',
        url: '/scabpm/agilebpm-ui/bpm/definition/definitionList.html',
      }
    },
    mounted() {
      const oIframe = document.getElementById('bdIframe');
      const deviceHeight = document.documentElement.clientHeight;
      oIframe.style.height = (Number(deviceHeight)-170) + 'px'; //数字是页面布局高度差
    }
  }
</script>

<style lang="scss" scoped>
  .iframe-flow {
    width: 100%;
    height: 100%;
  }
</style>
